import request from '../req'
// 获取黑名单列表
export const getBlackList = async (params: any) => {
    let res = await request.get('/insur/Blacklist/list', {
        params: params,
        noCancel: true
    })
    return res
}

// 模糊搜索客户名称
export const getCompanyByName = async (params: any) => {
    let res = await request.get('/saas/note/saasCompany/comb-co-info', {
        params: params
    })
    return res
}

// 长期保被派遣单位列表
export const longTermCompanyList = async (params: any) => {
    let res = await request.get('/period-insur/serve-company/comb-svc-list', {
        params: params
    })
    return res
}

// 日日保被派遣单位列表
export const dayCompanyList = async (params: any) => {
    let res = await request.get('/admin/company/get-wesure-server-company', {
        params: params
    })
    return res
}

// 新增黑名单
export const addBlackList = async (data: any) => {
    let res = await request.post('/insur/Blacklist', data)
    return res
}

// 修改黑名单 / 撤销
export const updateBlackList = async (data: any) => {
    let res = await request.put('/insur/Blacklist', data)
    return res
}

// 导出黑名单
export const exportBlackList = async (params: any) => {
    let res = await request.get('/insur/Blacklist/export', {
        params
    })
    return res
}
